################################################################################################
Replication files for Alsaadi, "Unconditional Loyalty: The Survival of Minority Autocracies," American Political Science Review
################################################################################################

######################
## Documentation:
######################

The replication archive includes the following documentation files:
1. this Readme.txt file
2. the article appendix includes explanations of variables and their sources, coding procedures, cases of minority regimes, robustness tests, interviews protocol and ethical considerations, and list of interviewees.

#######################
## Data:
#######################
The replication archive includes the following datasets:

1. "minorityreg.RDS": For analyzing authoritarian regime survival.
2. "navco_autocracy.RDS": For analyzing the mechanisms.
3. "dat.RDS": For matching and synthetic control methods.

######################
## Code:
######################

The replication archive includes the following R scripts:

1. "analysis_replication.R" : Includes code for all statistical analyses and all figures in the paper.
2. "Appendix _code.R": Includes code for statistical analyses in the Appendix. 
3. "data_cleaning.R": Includes code for data cleaning and transformation.



######################
## Software:
######################

All data analyses in this article were carried out using R version 2023.03.1+446 

# Packages
library(tidyverse)library(survival)library(foreign)library(survminer)
library(cobalt)library(cowplot)library(marginaleffects)library(lmtest)library(stargazer)library(sandwich)library(MASS)library(MatchIt)library(optmatch)library(mitools)library(Amelia)library(Synth)library(gsynth)library(patchwork)library(ggpubr)

